import java.util.Scanner;

public class a104_排序 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int m;
		int[] sort;
		int temp;
		
		String output;
		
		while(sc.hasNext()) {
			m = sc.nextInt();
			sort = new int[m];
			
			sc.nextLine();
			for(int i = 0; i < sort.length; i++)
				sort[i] = sc.nextInt();
			
			for(int i = 0; i <sort.length - 1; i++) {
				for(int j = 0; j < sort.length - 1 - i; j++) {
					if(sort[j] > sort[j + 1]) {
						temp = sort[j + 1];
						sort[j + 1] = sort[j];
						sort[j] = temp;						
					}
				}
			}
			
			output = "";
			for(int i = 0; i <sort.length; i++)
				output += Integer.toString(sort[i]) +" ";
			output = output.substring(0, output.length() - 1);
			
			System.out.println(output);
		} // next
	} // main
	
}